package cn.itsource.basic.util;

import lombok.Data;

import java.util.HashMap;

@Data
public class AjaxResult {

    //成功与否   可以使用boolean值  可以使用数字  200  500
    private Boolean success = true;
    private String message = "操作成功！！";
    private Object resultObj;

    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public AjaxResult setResultObj(Object obj){
        this.resultObj = obj;
        return this;
    }
}
